home *** CD-ROM | disk | FTP | other *** search
-
- ftok(3) UNIX Programmer's Manual ftok(3)
-
- NNAAMMEE
- ffttookk - create IPC indentifier from path name
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ssyyss//ttyyppeess..hh>>
- ##iinncclluuddee <<ssyyss//iippcc..hh>>
-
- _k_e_y___t
- ffttookk(_c_o_n_s_t _c_h_a_r _*_p_a_t_h, _c_h_a_r _i_d);
-
- DDEESSCCRRIIPPTTIIOONN
- The ffttookk() function attempts to create a unique key suitable for use with
- the msgget(2), semget(2) and shmget(2) functions given the _p_a_t_h of an
- existing file and a user-selectable _i_d.
-
- The specified _p_a_t_h must specify an existing file that is accessible to
- the calling process or the call will fail. Also, note that links to
- files will return the same key, given the same _i_d.
-
- RREETTUURRNN VVAALLUUEESS
- The ffttookk() function will return -1 if _p_a_t_h does not exist or if it cannot
- be accessed by the calling process.
-
- SSEEEE AALLSSOO
- msgget(2), semget(2), shmget(2)
-
- HHIISSTTOORRYY
- The ffttookk() function originate with System V and is typically used by pro-
- grams that use the System V IPC routines.
-
- AAUUTTHHOORR
- Thorsten Lockert <tholo@sigmasoft.com>
-
- BBUUGGSS
- The returned key is computed based on the device and inode of the speci-
- fied _p_a_t_h in combination with the given _i_d. Thus is is quite possible for
- the routine to return duplicate keys given that those fields are not 8-
- and 16-bit quantities like they were on System V based systems where this
- library routine's ancestor were originally created.
-
- BSD Experimental June 24, 1994 1
-